﻿using System.Collections.Generic;
using Zzt.ExpertsCore.Domain.Models.Enums;

namespace Zzt.ExpertsCore.Domain.Entities
{
    /// <summary>
    /// 抽取规则
    /// </summary>
    public class Principle : BaseRecordEntity
    {
        /// <summary>
        /// 所属抽取任务
        /// </summary>
        public int ExtractionId { get; set; }
        public virtual Extraction Extraction { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Order { get; set; }
        /// <summary>
        /// 抽取人数
        /// </summary>
        public int TotalCount { get; set; }
        /// <summary>
        /// 符合条件人数
        /// </summary>
        public int RestraintCount { get; set; }
        /// <summary>
        /// 公式类别： 专家， 监督员
        /// </summary>
        public ExpertType PrincipleType { get; set; }
        /// <summary>
        /// 是否使用工程库专家
        /// </summary>
        public bool ProExpert { get; set; }
        /// <summary>
        /// 挑选单位
        /// </summary>
        public virtual ICollection<Company> Companies { get; set; } = new List<Company>();
        public virtual ICollection<ExtractedExpert> ExtractedExperts { get; set; } = new List<ExtractedExpert>();
    }
}
